﻿using TemplateDemo.Common;

namespace TemplateDemo.Model
{
    public class ReturnMsg
    {
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool IsSuccess { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }
    }
    public class LoginResponse
    {
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool IsSuccess { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 成功时，颁发的token
        /// </summary>
        public string Token { get; set; }
    }
    public class ReturnMsg<T>
    {
        public bool IsSuccess { get; set; }
        public string Code { get; set; }
        public string Message { get; set; }

        public T Data { get; set; }
    }

    public class JonsTest
    {
        public string name { get; set; }
        public int age { get; set; }
        public DateTime brithdate { get; set; }
        [System.Text.Json.Serialization.JsonConverter(typeof(DateJsonConverter))]
        public DateTime testDate { get; set; }
    }
}